<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>病人管理</title>
</head>
<body>
	<div style="margin: 2%">
		<form id="addForm" action="/patient/add">
			<table style="border-collapse:collapse;width: 100%">
				<tr>
					<td>姓名</td>
					<td><input name="name" value="${patient.name}" /></td>
					<td>性别</td>
					<td>
						<input type="radio" name="gender" value="M" checked="checked"/>男
						<input type="radio" name="gender" value="F" ${patient.gender eq 'F'?'checked':''}/>女
					</td>
					<td>出生年月日</td>
					<td><input type="text" id="birthday" onclick="WdatePicker()" name="birthday" value="<fmt:formatDate value="${patient.birthday}" type="date" pattern="yyyy-MM-dd"/>" /></td>
					<td>年龄</td>
					<td><label id="age">${patient.age}</label></td>
				</tr>
				<tr>
					<td>医保类型</td>
					<td colspan="2">
						<select id="medicalInsType" name="medicalInsType">
							<option ${patient.medicalInsType eq '省医保'?'selected':''}>省医保</option>
							<option ${patient.medicalInsType eq '市医保'?'selected':''}>市医保</option>
							<option ${patient.medicalInsType eq '农村医保'?'selected':''}>农村医保</option>
						</select>
					</td>
					<td>家庭住址</td>
					<td colspan="4">
						<input name="address" value="${patient.address}"/>
					</td>
				</tr>
				<tr>
					<td>联系电话</td>
					<td colspan="3">
						<input name="contactNumber" value="${patient.contactNumber}"/>
					</td>
					<td>QQ号码</td>
					<td colspan="3">
						<input name="qqNumber" value="${patient.qqNumber}"/>
					</td>
				</tr>
				<tr>
					<td>身份证号码</td>
					<td colspan="3">
						<input name="idCard" value="${patient.idCard}"/>
					</td>
					<td>药物过敏</td>
					<td colspan="3">
						<input name="dragAllergy" value="${patient.dragAllergy}"/>
					</td>
				</tr>
				<tr>
					<td>入院时病情自诉</td>
					<td colspan="7">
						<textarea name="self_condition" style="width: 99%;resize:none;"  rows="5" cols="">${patient.self_condition}</textarea>
					</td>
				</tr>
			</table>
			<input type="button" value="增加病历" onclick=""/>
			<input type="button" value="删除选中病历" onclick=""/>
			<table style="border-collapse:collapse;width: 100%">
				<tr id="">
					<td rowspan="3"><input type="checkbox" name="recordId"/>第1次入出院</td>
					<td>入院时间</td>
					<td><input type="text" id="" onclick="WdatePicker()" name="" value="" /></td>
					<td>接诊医生</td>
					<td>
						<select>
							<option>张三</option>
							<option>李四</option>
						</select>
					</td>
					<td>住院号</td>
					<td><input /></td>
				</tr>
				<tr>
					<td>诊断病情</td>
					<td colspan="5">
						<textarea style="width: 99%;resize:none;"  rows="5" cols=""></textarea>
					</td>
				</tr>
				<tr>
					<td>出院时间</td>
					<td><input type="text" id="" onclick="WdatePicker()" name="" value="" /></td>
					<td>治疗效果</td>
					<td colspan="3">
						<textarea style="width: 99%;resize:none;"  rows="5" cols=""></textarea>
					</td>
				</tr>
			</table>
		</form>
		<center>
			<input type="button" value="返 回" onclick="returnList('viewDiv')"/>
		</center>	
	</div>

<script type="text/javascript">

</script>
</body>
</html>
